package cn.wink.springcloud.controller;

import cn.wink.springcloud.service.MessageProvider;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xw
 * @date 2020-06-14 23:18
 */
@RestController
public class MessageController {

    @Autowired
    private MessageProvider messageProvider;

    @GetMapping("/sendMsg")
    public String create() {
        return messageProvider.send();
    }
}
